/*
 * @Author: dfy
 * @Date: 2022-12-14 17:07:44
 * @LastEditors: dfy
 * @LastEditTime: 2022-12-21 17:53:11
 * @FilePath: \FPCC\pages\weighing-process\weighing-process.js
 * @Description: 
 * 
 * Copyright (c) 2022 by YongXin, All Rights Reserved. 
 */
Page({
  data: {
    imgSrc: '1',
    imgSrc1: '3',
    isStop: null,  // 是否停止闪烁
    theA: [],
    showDialog:false
  },
  onLoad() {

  },
  fafafa(){
    var i=1;
var j=3
   this.data.isStop= setInterval(()=> {
      i++;
      j++;
      if(i>2 && j>4){i=1;j=3}
      this.setData({
        imgSrc:i,
        imgSrc1:j
      })
    }, 1000);      


  },
  stop(){
  clearInterval(this.data.isStop)

  },
  changeImage() {
 
  },
  swiperChange(e){
    if(e.detail.current===0){
  wx.setNavigationBarTitle({
    title: '准备称重'
 })
    }else if(e.detail.current===1){
      wx.setNavigationBarTitle({
        title: '重量确认'
     })
        }
        else if(e.detail.current===2){
          wx.setNavigationBarTitle({
            title: '出售完成'
         })
            }
  },
  toIndex(){
    wx.switchTab({
  url: '/pages/index/index'
    })
  },
  showDialog(){
this.setData({
  showDialog:true
})
  }

})
